//nav actions
import axios from 'axios'
import {GET_NAV} from './type'
export default {
    get_nav : function(context){
        axios.get('http://localhost:3000/getNav').then((result)=>{
            var data = result.data;
            context.commit(GET_NAV , data)
        }).catch((err)=>{
            console.log(err)
        })
    }
}